<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/WEB-INF/jsp/admin/inc/taglibs.jsp"%>
	<%@ include file="/WEB-INF/jsp/admin/inc/meta.jsp"%>
</head>  
  <body style="background:#E8F5FE; padding:15px 18px;" class="scroll_r">
<div id="right_w"><p>当前位置：系统管理 >>商品分类管理</p></div>
<table border="0" cellpadding="" cellspacing="1" align="center" width="98%" id="web_tab">
<caption style="text-align: right;margin-bottom:4px;">
<button class="but" onclick="location.href='${approot}/admin/${entity}/toAdd'">添加分类</button>
<button class="but" onclick="return delete_batch('${entity}','${approot}/admin/${entity}/list/menu/${parentId}/0/0')">批量删除</button>
</caption>
 <tr>
  <th width="4%"><input type="checkbox" name="all" value="all" onclick="select_all(this.checked)"/> </th>
  <th>分类名称</th>
  <th>关键字</th>
  <th width="20%">创建时间</th>
  <th width="16%">操作</th>
 </tr>
<c:forEach var="item" items="${page.items}">
 <tr>
  <td><input type="checkbox" name="ids" value="${item.id}"/></td>
  <td>${item.name}</td>
  <td>${item.keywords}</td>
  <td><fmt:formatDate value="${item.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  <td>
  <a href="#" onclick="return delete_item('${entity}','${item.id}','${approot}/admin/${entity}/list/menu/${parentId}/0/0')">删除</a>
  <a href="${approot}/admin/${entity}/toEdit/${item.id}">修改</a>
   </td>
 </tr>
 </c:forEach>
</table>
<%@ include file="/WEB-INF/jsp/admin/inc/page_tree.jsp"%>  
</body>
</html>
